<?php
global $connect;
$query = "CALL show_magasins(".$_GET['idmag'].")";
echo "$query <br />";
$mag = mysql_query($query) or die(mysql_error());


?>
<h1>Liste des produits</h1>
			<table frame="border" border="1" cellspacing="0">
				<thead>
					<tr> <th>Marque</th> <th>Categories</th> <th>Cellule</th> <th>Quantite</th> <th>Maximum</th> </tr>
				</thead>
			<?php
				while ($data = mysql_fetch_array($mag_list))
				{
					echo "<tr > <td align='center' width='120px'>".$data['MARQUE']." </td>";
					echo "<td align='center' width='120px'>".$data['NOMCATEGORIE']." </td>";
					echo "<td align='center' width='120px'>".$data['CELLULE']." </td>";
					echo "<td align='center' width='120px'>".$data['QUANTITE']." </td>";
					echo "<td align='center' width='120px'>".$data['MAXI']." </td></tr>";
				}
			?>
			</tbody>
		</table>